home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / FAQ / NeXT / FAQ.misc < prev    next >
Text File  |  1992-12-27  |  14KB  |  448 lines

  1. NeXT-FAQ.misc: tidbits
  2.  
  3.  
  4. *** Subject: M1. Is there any way to change the text in the title bar of a terminal window?
  5.  
  6. There is no way of changing the title bar of a terminal or
  7. stuart window once it is running.  However in Stuart is
  8. possible to get more descriptive titles by linking
  9. /usr/ucb/rsh to /usr/hosts/<hostname>.  Then by adding
  10. /usr/hosts to your Stuart ShellPath you can then get the
  11. hostname into the title bar: 
  12.  
  13.     $ dwrite StuartShellPaths <various dirs>:/usr/hosts
  14.     
  15. You should then type in the hostname as the shell to invoke
  16. (disable the "Shell reads .login file" for this.  You can
  17. also add hosts to your .Stuartrc file:
  18.  
  19.     Shell=golem.ps.uci.edu
  20.     SourceDotLogin=NO
  21.     WinLocX=545
  22.     WinLocY=563
  23.     Lines=24
  24.     |
  25.     WinLocX=76
  26.     WinLocY=833
  27.  
  28. For the localhost, link /bin/csh to /usr/hosts/<name>, or
  29. even better /usr/local/bin/tcsh instead of using rsh 
  30.  
  31.  
  32. [Garance A Drosehn <gad@eclipse.its.rpi.edu>] adds:
  33.  
  34. For what it's worth, I do this with a script called
  35. "telnet_to" and a (bash) function called
  36. "telnet_window".  The function simply does a 
  37.  
  38.      local soil_pars="-Lines 32 -Keypad YES -Reverse YES -Strict YES -TestExit YES";
  39.      soil -Shell "telnet_to $1" $soil_pars
  40.  
  41. and the script is just:
  42.  
  43.      #!bin/sh
  44.      /usr/ucb/telnet $*
  45.      echo ' '
  46.      echo '  -->   telnet exited, press enter to close window.'
  47.      read -r Waste_Var
  48.      exit 0
  49.  
  50. This has a number of advantages, not the least of which
  51. being that I can pop up a "telnet_window" to anywhere.  I
  52. don't have to create links for each host (though I do
  53. create aliases for the most common hosts), and I can type
  54. "telnet_window" (or, e.g., "tel_aix") as a unix
  55. command.  Also, if I lose the connection suddenly then the
  56. window stays around until I get a chance to see what
  57. happened.  I use telnet instead of rsh because I generally
  58. connect to hosts which won't accept rsh's. 
  59.  
  60.  
  61. *** Subject: M2. Can I put both a 68030 and a 68040 system board in a single NeXT cube?
  62.  
  63. There is a company which plans to offer hardware (extra
  64. CPU boards) and software support solutions for the OD
  65. with Turbo NeXTcubes.  
  66.  
  67. For more information:
  68.  
  69.     Sam Goldberger
  70.     Spherical Solutions
  71.     smg@sphersys.net.netcom.com
  72.     415-383-7512
  73.  
  74.  
  75. [Note that we have no first hand experience with this
  76. problem, we have compiled what we consider to be an
  77. accurate report.  We acknowledge conflicting reports
  78. where appropriate.]
  79.  
  80. In general Mach may be configured as a multiprocessor
  81. operating system; however, the NeXT kernel is only
  82. configured to deal with one processor. This
  83. configuration can not be changed without access to the
  84. kernel sources.  [hopefully NeXT will offer a
  85. multiprocessor version of the NeXT operating system at
  86. some future date]
  87.  
  88. Some have asked about the possibility of installing the
  89. 030 board for use as a printserver or other CPU-intensive
  90. task server.  In this hypothetical setup, each CPU would
  91. run its own copy of the operating system (essentially two
  92. different computers sharing the same cube).
  93.  
  94. This might be workable except for the fact that even if the
  95. NBIC (NextBus Interface Chip) chip is removed, the CPU
  96. board probes the  bus for slot ID [**a conflicting report
  97. comes from Richard Dib who heard that someone ran a cube
  98. with the CPU in another slot].
  99.  
  100. You could do hardware modification to the 68030 board
  101. which would isolate it enough to use only the cube as a
  102. power supply, however you can not run two monochrome
  103. monitor heads off the cube power supply. In this case you
  104. would probably want to first boot the 68030 with a display
  105. head, set the boot prom to boot off ttya, and attach an
  106. ascii terminal to that serial port. 
  107.  
  108.  
  109. *** Subject: M3. Where is libc.a under 2.0?
  110.  
  111. From the developer's release notes concerning the 2.0
  112. NeXT Operating System Software available on-line with
  113. 2.0 extended: 
  114.  
  115.     /NextLibrary/Documentation/NextDev/ReleaseNotes/OperatingSystem.rtf 
  116.  
  117. - libc.a is not shipped with release 2.0.  All routines
  118. contained in   libc.a are also contained in the shared
  119. library libsys.a which should be used instead of libc.a. 
  120. libc.a is not shipped because  as a normal archive it is
  121. impossible for improvements and system interface
  122. changes made to library routines to be applicable to 
  123. existing applications without those applications
  124. being relinked.   Applications referencing shared
  125. libraries, because they are bound at runtime, always
  126. access the most recent release.  Release 1.0 
  127. applications linked against libc.a may not be
  128. compatible with  release 2.0 until they are relinked with
  129. libsys.a. 
  130.  
  131.  
  132. *** Subject: M4. How do I get pictures of people from remote sites to appear in  Mail.app and NewsGrazer? 
  133.  
  134. Mail.app:
  135. In /LocalLibrary/Images/People put a tiff (64x64) in
  136. the form of person@remote.site.domain.tiff (all
  137. lowercase). In /LocalLibrary/Images/People/passwd
  138. add an entry for the person:
  139. person@remote.site.domain:*:-2:-2::/nodir:/noshell
  140. (person and sitename need to be all lowercase as well)... 
  141. In the future anytime you get mail from the person their
  142. picture should appear. 
  143.  
  144. You can include an "aliases" file in
  145. /LocalLibrary/Images/People too.  This allows you to
  146. use the same picture for somebody that might send you mail
  147. from accounts on many different sites, or for those
  148. people whose letters use several different routings. 
  149.  
  150. To do this, you include entries in this local aliases file
  151. like so: 
  152.  
  153.     bkohler@ucrac1.ucr.edu:bkohler.gonzo.ucr.edu
  154.     gonzo.ucr.edu!bkohler@uupsi2.uucp:bkohler.gonzo.ucr.edu
  155.  
  156. There should then be a .tiff file called
  157. bkohler.gonzo.ucr.edu.tiff. 
  158.  
  159. There can be no CAPITAL LETTERS in this file.  So even if the
  160. address in the From: field looks like
  161. gonzo.ucr.edu!bkohler@uupsi2.UUCP, keep the letters
  162. lowercase in the aliases file.
  163.  
  164. As always, you have to restart Mail.app before these
  165. changes take effect. 
  166.  
  167.  
  168. NewsGrazer:
  169. In /LocalLibrary/NewsGrazer/People put a tiff (64x64)
  170. in the form of person.remote.site.domain (all
  171. lowercase).  This is a different naming convention from
  172. what Mail.app uses. 
  173.  
  174.  
  175. There is a large archive of some 4000 or 5000 pictures
  176. prepared for this purpose. The name of this archive is
  177. Faces3.tar.Z and it is about 4.1 MBytes large. Currently
  178. it is available from several anon ftp sites (e.g.
  179. sonata.cc.purdue.edu) in:
  180.  
  181.     /pub/next/graphics/Images/icons/people.
  182.  
  183. That image archive also contains a script which
  184. automatically creates proper alias and passwd files. 
  185.  
  186.  
  187. *** Subject: M5. How do I access the "help" facilities in Mathematica 1.0?
  188.  
  189. While the help dialog doesn't show anything, you
  190. can get the help info by clicking on the place where the
  191. slider bar should be.  This tidbit doesn't seem to work on
  192. all systems though, and will be irrelevant once the new
  193. version of Mathematica comes out. [Which it has].
  194.  
  195.  
  196. *** Subject: M6. How do I find out what are the defaults for a NeXT application?
  197.  
  198. A command line utility for examining defaults is
  199. available from sutro.sfsu.edu:/pub/wmdefaults1.0.tar.Z.
  200.  
  201. A PD App, DefaultMgr.app, is available on the NeXT ftp
  202. archives. 
  203.  
  204. A more brute approach (done by DefaultMgr.app):
  205.  
  206. Start the application under gdb, and then try the
  207. following sequence of commands: 
  208.  
  209.     break  *0x500976a
  210.     commands 1
  211.     silent
  212.     printf "%s: ", *$a2
  213.     output {char *}(4+$a2)
  214.     echo \n
  215.     cont
  216.     end
  217.     run
  218.  
  219.  
  220. *** Subject: M7. How do I run NextApps remotely?
  221.  
  222. On the local machine make sure you have public window
  223. server access, this is set from the Preferences
  224. application.  On the foreign NeXT machine run the
  225. application from a terminal window with the -NXHost
  226. <local_machine_name>.  Both machines should be running
  227. the same version of NeXTstep. 
  228.  
  229.  
  230. *** Subject: M8. Why does UUCP hangs on outgoing connections after sending the password, but other communications software do not have a problem with it?
  231.  
  232. What is happening is that the remote machine is waiting
  233. for you to end your login or password by typing a "Return"
  234. (aka ^M or CR or CARRIAGE RETURN).  UUCP ends a line by
  235. sending a LineFeed (aka ^J or LF).  Since UUCP doesn't send
  236. the CR, the login sequence is never completed, and you
  237. will usually get one of two error messages: 
  238.  
  239.     wanted "password:" (means that username needs to end with a CR)
  240.     imsg waiting for SYNC< (means that password needs to end with CR)
  241.  
  242. So how do you get UUCP to send CR, instead of LF?
  243.  
  244. End the send string with the sequence \n\c.  For instance
  245. this line in L.sys will send a LF after login, but a CR after
  246. password.
  247.  
  248.     myfeed Any DIR 9600 cub "" ATTD19095551212 9600 \
  249.     "" ogin:--ogin: Unext ssword: secret\n\c
  250.  
  251.  
  252. *** Subject: M9. How do I access the NeXT's Digital Websters Dictionary from a program?
  253.  
  254. Get Jiro Nakamura's define program from the archiver
  255. servers define.tar.Z.  This will allow you to access the
  256. database from the command line. 
  257.  
  258.  
  259. *** Subject: M10. How do I remap the \ and | keys on my keyboard?
  260.  
  261. NeXT introduced a new keyboard configuration with the
  262. 040 products. The \| keys which had been located on the
  263. main keyboard was moved to the numeric keypad.  Many users
  264. have since complained about it, and a work around is to
  265. remap these keys using the demo application Keyboard
  266. (/NextDeveloper/Demos/Keyboard), Mike Carlton's
  267. keyboardfix program (on cs.orst.edu
  268. next/sources/next-interface/keyboardfix.tar.Z)
  269. which lets you put these keys on shift-return or
  270. shift-delete.  One can hope that there will be a choice of
  271. keyboards in the future. 
  272.  
  273.  
  274. *** Subject: M11. Why doesn't email registration to Mathematica work?
  275.  
  276. There is a bug with this option where the mail instead of
  277. being sent to Wolfram is stored in /tmp/email.message.
  278. This file seems to be suitable for mailing to
  279. register@wri.com
  280.  
  281.  
  282. *** Subject: M12. How do I stop NeXTMail/Sendmail adding\ ^Ms onto the end of lines? 
  283.  
  284. In /etc/sendmail.cf make this change:
  285.  
  286. [old code]
  287.  
  288.     #####        UUCP Mailer specification
  289.     #####
  290.     Muucp,    P=/usr/bin/uux, F=msDFMhuU, S=13, R=23,
  291.  
  292. [new code]
  293.  
  294.     #####        UUCP Mailer specification
  295.     #####
  296.     Muucp,    P=/usr/bin/uux, F=msDFMhuU, S=13, R=23, E=\n,
  297.  
  298.  
  299. *** Subject: M13. Where can I get black spray paint for my NeXT? 
  300.  
  301. Sprayon Paint
  302. Omni-Packblend
  303. 4Next-Black (icon black)
  304. LAV-16
  305. 25216
  306.  
  307. Call 1-800-777-2966 for the name of a dealer near you.
  308. It's nominally $2.75/16 oz. can.
  309.  
  310.  
  311. *** Subject: M14. What default affects menu location?
  312.  
  313. dwrite GLOBAL NXMenuX <value>
  314. dwrite GLOBAL NXMenuY <value>
  315.  
  316.  
  317. *** Subject: M15. How to get Gourmet to boot up the Mathematica 2.0 kernel? 
  318.  
  319. Login as root, or get root privileges running 'su', and
  320. execute the following five commands: 
  321.  
  322.     mkdirs /NextApps/Mathematica.app/Kernel/NeXT
  323.     cd /NextApps/Mathematica.app/Kernel
  324.     ln -s uuuuu/Mathematica.app/Kernel/Display Utilities
  325.     cd NeXT
  326.     ln -s vvvvv/math mathexe
  327.  
  328. where uuuuu is the directory where Mathematica.app was
  329. placed (typically, /LocalApps) and vvvvv is the
  330. directory where the executable 'math' was placed
  331. (typically, /usr/local/bin) 
  332.  
  333.  
  334. *** Subject: M16. How to have the hostname show up on the NeXT login screen? 
  335.  
  336. As root:
  337.  
  338.     dwrite loginwindow HostName localhost
  339.  
  340. The "localhost" will be replaced with your system name.    
  341.     
  342.  
  343. *** Subject: M17: How does one set UNIX man pages to be viewed in nroff format with DL like the standard manual pages?
  344.  
  345. Beyond looking in the man pages under ixBuild, etc., what
  346. you want to do is put a few files (contents listed below
  347. file name) the .index directory: 
  348.  
  349.     .roffArgs:
  350.     -man
  351.  
  352.     displayCommand:
  353.     tbl %s | nroff -man
  354.  
  355.     ixBuildOptions:
  356.     -fman -Nwhatis -Ncat[1-8ln] -V
  357.  
  358. Other options that people suggested for ixBuildOptions:
  359.  
  360.     -fman -Nwhatis -Ncat[1-8] -V /usr/local/man
  361.     -fman -Nwhatis -V /usr/local/man/man*
  362.  
  363. I don't think you need to explicitly name the directory in
  364. the first alternative, but you do in the second unless you
  365. want the cat* directories indexed as well.
  366.  
  367. Note: Do NOT leave a trailing return after the line in
  368. ixBuildOptions; DL will barf.  (I think someone said
  369. that, as shipped, the standard man .index/
  370. ixBuildOptions had this problem.) 
  371.  
  372.  
  373. *** Subject: M18: Can I automatically have my ~/.signature file appended to mail I send with Mail.app?
  374.  
  375. I want to automatically add additional header lines to mail going 
  376. out from Mail.app (such as Reply-To or X-faces headers). Can this be 
  377. done?
  378.  
  379. [Carl Edman]
  380.  
  381. Yes, on both counts. First create a simple text file the following 
  382. content:
  383.  
  384.     #!/bin/sh
  385.     {
  386.     if test -r ${HOME}/.add-header; then cat ${HOME}/.add-header; fi
  387.     cat -
  388.     if test -r ${HOME}/.signature; then echo "--"; cat ${HOME}/.signature; 
  389.     fi
  390.     }| /usr/lib/sendmail "$@"
  391.  
  392. A good name for this file would be "sendmail-addheader".
  393. If you want to  and can install it for system-wide use put
  394. this file in e.g. /usr/lib.  Otherwise your private
  395. ~/Unix/bin directory is also fine. Make certain  that
  396. this file has execute permission. To set that, use e.g.
  397. "chmod 755  /usr/lib/sendmail-addheader".
  398.  
  399. Next, open up the preferences panel in Mail.app. Switch
  400. to the expert  options. Change the Mailer option from
  401. "/usr/lib/sendmail" (which it  should originally be) to
  402. "/usr/lib/sendmail-addheader" (or whatever the  name
  403. of the file you created is). OK this and you should be set.
  404.  
  405. From now on your ~/.signature file should always be
  406. appended to all  mail sent out with Mail.app. In addition
  407. if you have a file called  add-header in your
  408. home-directory it should automatically be prepended  to
  409. your outgoing mail. To implement a reply-to line, you
  410. would simply  give it the following content: 
  411.  
  412.     Reply-to: My Real Human Name <name@my.real.address>
  413.  
  414. IMPORTANT: Make certain that you have one and exactly one
  415. newline at  the end of ~/.add-header. Anything might
  416. break outgoing mail. Beware !
  417.  
  418. BUG: The ~/.signature file is not added properly for NeXT
  419. mail  containing attachments. The headers will still be
  420. added properly. This  could be fixed but probably is more
  421. of a hassle than it is worth.
  422.  
  423.  
  424. *** Subject: M19: How can I quickly find a file if I don't know it's directory?
  425.  
  426. The Unix 'find' command on the NeXT has the capability of
  427. quickly searching a database of all the files.  This
  428. database is located in /etc/find.codes and has to be
  429. generated periodically.  You can automatically
  430. generate this database, say twice a week at 3:15 a.m., by
  431. adding this line to your file /etc/crontab.local (you
  432. might have to create this file). 
  433.  
  434. 15 03 * * 2,5 root    /usr/lib/find/updatedb > /usr/adm/updatedb.err
  435.  
  436. After this has run, you can quickly find any file from a
  437. terminal by typing 
  438.  
  439.     find pattern
  440.     
  441. where pattern is a part of the file name you want (it is
  442. case-sensitive). 
  443.  
  444.  
  445. ---
  446. Editor:
  447. Nathan Janette nathan@laplace.csb.yale.edu
  448.